home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / Color Window Demo / init demo.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-30  |  501 b   |  24 lines  |  [TEXT/KAHL]

  1. #include "my color.h"
  2. init_color_demo()        /* initialize all the managers needed, and prepare the 
  3.                             program for execution */
  4. {
  5.  
  6.     InitGraf(&thePort);
  7.  
  8.     InitFonts();
  9.     FlushEvents(everyEvent,0);
  10.     InitWindows();
  11.     InitMenus();
  12.     TEInit();
  13.     InitDialogs(nil);
  14.     InitCursor();
  15.     
  16.     SetUpMenus(); 
  17.     screenRect = screenBits.bounds;
  18.     SetRect(&dragRect,4,24,screenRect.right-4,screenRect.bottom-4);
  19.     doneFlag = false;
  20.  
  21.     menusOK = false;
  22.     nextWNum = 1;        
  23.     SetRect (&nextWRect,leftEdge,topEdge,rightEdge,botEdge);
  24. }